/* =========================
   Carrusel infinito: hover + selección
   ========================= */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  margin: 40px 0 10px;
}

.carousel-track {
  display: flex;
  gap: 12px;
  will-change: transform;
  transform: translate3d(0,0,0);
  padding: 6px 8px;
}

.carousel-track img {
  height: 280px;
  object-fit: contain;
  background: #000;
  border: 4px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 0 12px #d4af37;
  flex: 0 0 auto;

  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
  will-change: transform;
}

.carousel-track img:hover {
  transform: scale(1.06);
  border-color: rgba(212,175,55,.95);
  box-shadow: 0 0 22px rgba(212,175,55,.35);
  filter: brightness(1.08);
  z-index: 2;
}

/* Seleccionada: NO cambia tamaño (para que no se recorte) */
.carousel-track img.is-selected {
  transform: none !important;
  border-color: rgba(212,175,55,1);
  box-shadow: 0 0 28px rgba(212,175,55,.55);
  filter: brightness(1.10);
}

/*  Si está seleccionada, aunque pases el mouse, no la agrandes */
.carousel-track img.is-selected:hover {
  transform: none !important;
}

/* =========================
   MODAL Netflix
   ========================= */
.gge-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.gge-modal.is-open { display: block; }

.gge-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.gge-modal-dialog {
  position: relative;
  width: min(920px, 92vw);
  margin: 6vh auto;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid rgba(212,175,55,.45);
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}

.gge-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
}

.gge-modal-hero {
  position: relative;
  height: 360px;
  background: #000;
}

.gge-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gge-modal-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.92) 100%);
}

.gge-modal-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gge-modal-meta h2 {
  font-size: 26px;
  color: var(--gge-gold, #d4af37);
  text-shadow: 0 8px 22px rgba(0,0,0,.75);
}

.gge-modal-host { opacity: .95; }

.gge-modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gge-modal-desc {
  line-height: 1.5;
  opacity: .95;
}

.gge-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gge-btn-primary,
.gge-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}

.gge-btn-primary {
  background: var(--gge-gold, #d4af37);
  color: #000;
}

.gge-btn-ghost {
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  background: rgba(255,255,255,.06);
}

/* ✅ flecha = BUTTON */
.gge-modal-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,55,.95);
  color: #000;
  font-size: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);

  border: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  .carousel-track img { height: 220px; }
  .gge-modal-hero { height: 280px; }
  .gge-modal-meta h2 { font-size: 20px; }
}

/* =========================
   Responsive extra (tablet + touch)
   ========================= */

/* Tablet (600–900px aprox): baja un poquito el alto */
@media (max-width: 900px) {
  .carousel-track img { height: 240px; }
}

/* Móvil: un poco más compacto (puedes dejar 220 si te gusta más) */
@media (max-width: 600px) {
  .carousel-track img { height: 200px; }
}

/* En pantallas táctiles, el hover no es real: evitamos "efectos raros" */
@media (hover: none) and (pointer: coarse) {
  .carousel-track img:hover {
    transform: none;
    filter: none;
    box-shadow: 0 0 12px #d4af37;
  }
}
